package cn.easy.mapper;

import cn.easy.pojo.Easytrigger;
import cn.easy.pojo.EasytriggerExample;
import cn.easy.vo.TriggerInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EasytriggerMapper {
    int countByExample(EasytriggerExample example);

    int deleteByExample(EasytriggerExample example);

    int deleteByPrimaryKey(Integer triggerId);

    int insert(Easytrigger record);

    int insertSelective(Easytrigger record);

    List<Easytrigger> selectByExample(EasytriggerExample example);

    Easytrigger selectByPrimaryKey(Integer triggerId);

    int updateByExampleSelective(@Param("record") Easytrigger record, @Param("example") EasytriggerExample example);

    int updateByExample(@Param("record") Easytrigger record, @Param("example") EasytriggerExample example);

    int updateByPrimaryKeySelective(Easytrigger record);

    int updateByPrimaryKey(Easytrigger record);

    /**
     * 获取传感器名下所有的触发器
     *
     * @return
     */
    List<TriggerInfoVo> getSensorAllTriggers(Integer sensorId);
}